import { createRouter, createWebHistory } from 'vue-router'
import ChatPage from '@/views/chat/index.vue'
import LoginPage from '@/views/login/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/login' },
    { path: '/login', component: LoginPage },
    { path: '/chat', component: ChatPage }
  ]
})

export default router
